package com.fjnu.teaching;

import lombok.Data;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @desc:
 * @author: Ping
 * @date: 2025/9/12 9:10
 */


public class TeachingService {
    Log log = LogFactory.getLog(TeachingService.class);

    private TeachingDao teachingDao ;

    public TeachingService() {

    }

    public TeachingService(TeachingDao teachingDao) {
        this.teachingDao = teachingDao ;
    }

    public int startCourse(Teacher teacher, Course course){
        // control: new teacher and new course
        log.info("start a course");
        return teachingDao.insert(teacher,course) ;

    }


}
